package com.koo.modules.sale.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.koo.common.base.entity.CommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author charlin
 * @email 136137465@qq.com
 * @date 2023-03-16 16:57:09
 */
@Data
@ApiModel("")
@TableName("sale_prescriptioin_order_detail")
public class SalePrescriptioinOrderDetailEntity extends CommonEntity {
    private static final long serialVersionUID = 1L;

    @ExcelIgnore
    @TableId
    private Long detailId;

    @ExcelIgnore
    @ApiModelProperty(value = "处方单Id")
    private Long prescriptionId;

    @ColumnWidth(11)
    @ExcelProperty("处方单编号")
    @ApiModelProperty(value = "处方单编号")
    private String prescriptionNo;

    @ColumnWidth(11)
    @ExcelProperty("产品id")
    @ApiModelProperty(value = "产品id")
    private Long productId;

    @ColumnWidth(11)
    @ExcelProperty("产品编号")
    @ApiModelProperty(value = "产品编号")
    private String productCode;

    @ColumnWidth(11)
    @ExcelProperty("产品名称")
    @ApiModelProperty(value = "产品名称")
    private String productName;

    @ColumnWidth(11)
    @ExcelProperty("通用名")
    @ApiModelProperty(value = "通用名")
    private String genericName;

    @ColumnWidth(11)
    @ExcelProperty("规格")
    @ApiModelProperty(value = "规格")
    private String standard;

    @ColumnWidth(11)
    @ExcelProperty("单位")
    @ApiModelProperty(value = "单位")
    private String unit;

    @ColumnWidth(11)
    @ExcelProperty("批准文号")
    @ApiModelProperty(value = "批准文号")
    private String approvalNo;

    @ColumnWidth(11)
    @ExcelProperty("产地")
    @ApiModelProperty(value = "产地")
    private String producingArea;

    @ColumnWidth(11)
    @ExcelProperty("生产单位")
    @ApiModelProperty(value = "生产单位")
    private String produceFactory;

    @ColumnWidth(11)
    @ExcelProperty("剂型")
    @ApiModelProperty(value = "剂型")
    private String dosageForm;

    @ColumnWidth(11)
    @ExcelProperty("条码")
    @ApiModelProperty(value = "条码")
    private String barCode;

    @ColumnWidth(11)
    @ExcelProperty("购买数量")
    @ApiModelProperty(value = "购买数量")
    private Long buyNum;

    @ColumnWidth(11)
    @ExcelProperty("价格")
    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ColumnWidth(11)
    @ExcelProperty("金额")
    @ApiModelProperty(value = "金额")
    private BigDecimal totalFee;

    @ColumnWidth(11)
    @ExcelProperty("使用方法")
    @ApiModelProperty(value = "使用方法")
    private String useMethod;

    @ColumnWidth(11)
    @ExcelProperty("频率周期")
    @ApiModelProperty(value = "频率周期")
    private String useFrequencyUnit;

    @ColumnWidth(11)
    @ExcelProperty("频率数量")
    @ApiModelProperty(value = "频率数量")
    private String useFrequencyNum;

    @ColumnWidth(11)
    @ExcelProperty("每次用药数量")
    @ApiModelProperty(value = "每次用药数量")
    private String usePerUseNum;

    @ColumnWidth(11)
    @ExcelProperty("每次用药单位")
    @ApiModelProperty(value = "每次用药单位")
    private String usePerUseUnit;

    @ColumnWidth(11)
    @ExcelProperty("天数")
    @ApiModelProperty(value = "天数")
    private String useDays;



}
